import router from '@ohos.router';
import hotList from '../../res/data';
// import {hotList} from '../../http/api'
export default {
    data: {
        title: "",
        hotList:[]
    },
    onInit() {
        // 引入本地数据
        this.hotList = hotList;
    },
    onReady(){

        //调用线上接口获取数据
        // hotList().then(res =>{
        //     console.log('>>>>>>>>',res)
        // })
    },

    toDetail(id){

        router.push({
            url: 'pages/Detail/Detail',
            params: {
                id:id
            }
        })
    }
}



